package com.mioto.ld.communication.websocket.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author mioto-qinxj
 * @date 2024/5/16
 * @desc websocket接收消息对象
 * <div>{"cmd":1001,"clientType":1,"clientId":"10000","body":{}}</div>
 */
@Getter
@Setter
@ToString
public class WsRecMessage {

    /**
     * 消息类型
     */
    private Integer cmd;
    /**
     * 客户端类型 1-web 2-android
     */
    private Integer clientType;
    /**
     * 客户端唯一标识  用户id_web/用户id_android
     */
    private String clientId;

    /**
     * 消息体
     */
    private WsMessageBody body;
}
